<template>
  <div>
    <OrderList :orderList="orderList"></OrderList>
  </div>
</template>

<script>
import { mapActions, mapState } from 'vuex'
export default {
  name: 'MyAllGoods',
  created () {
    this.getAllOrderAction({ dataType: 'all', page: '2' })
  },
  methods: {
    ...mapActions('order', ['getAllOrderAction'])
  },
  computed: {
    ...mapState('order', ['orderList'])
  }
}
</script>

<style scoped>
.all{
    width: 100%;
    height: 500px;
    background-color: rgb(247, 247, 247);
}
.order-list{
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-content: center;
}
.item{
    width: 95%;
    height: 200px;
    margin: 10px 10px 0px 10px;
    padding: 15px 15px;
    background-color: white;
}
.item i{
    font-style: normal;
    color: red;
}
.item .order-date{
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.order-count{
    display: flex;
    flex-direction:row;
    justify-content: space-around;
    margin-top: 20px;
}
.order-count img{
    width: 80px;
    height: 80px;
}
.order-count .good-title{
    /* display: inline-block; */
    width: 160px;
    height: 43px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 5px;
    font-size: 16px;
}
.order-count .good-price,
.order-total{
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: flex-end;
    font-size: 16px;
}
.order-total button{
    display: inline-block;
    margin-top: 5px;
    font-size: 14px;
    width: 80px;
    height: 25px;
    background-color: white;
    border: 1px solid rgb(194, 190, 190);
    border-radius: 3px;
}
</style>
